



<?php
	include_once("lib/DB.php");
	
//===============================================================
//
//======================== VARIABLES ============================
//
//===============================================================
	$db = new DB();
    $result = $db->getLastTags(15);
    $color_array = array("#87A800", "#FF7600", "#87A800", "#DE2159", "4053FF");
	
//===============================================================
//
//======================== HTML CODE ============================
//
//===============================================================	
   // echo("<div class='caixa'>");
	//echo("<div class='header-box'> Menu </div> ");
	
	// DIV Menu
	//echo("<div id='menu'>");
	//echo("<a href='index.php'>HOME</a>");			
	//echo("<br/>");	
	//echo("<br/>");	
	//echo("<a href='index.php'>TIPOS</a>");
	//echo("<br/>");	
	//echo("<a href='index.php'>TAGS</a>");
	//echo("<br/>");
	//echo("<br/>");
			
	//if( isset( $_SESSION['userid'] ) )
	//{ 				
	//	echo("<a href='upload.php'>Upload</a>");
	//	echo("<br/>");		
	//	echo("<a href='meusmodelos.php'>Meus modelos</a>");
	//	echo("<br/>");			
	//}	
	// Close DIV Menu
	//echo("</div>");
	
		
		echo <<< END
        
       
       <table class="caixa" cellspacing="0" cellpadding="0">
       <tbody>
       <tr>
       <td class="topl"></td>
       <td class="topr"></td>
       </tr>   
       <tr>
       <td class="boxmidlrg">
       
       <div class='header-box'> Menu </div>
	
          <dd id="site-menu">
		    <ul id="site-menu-dropdown" class="d-dropdown compact">
			<li>
            <a href="#1" class="dropdown-tab" title="Home">Home</a>
            <ul class="dropdown-pane">
            <li><a href="#1" title="Home1">Home1</a></li>
            <li><a href="#1" title="Home1">Home2</a></li>
            <li><a href="#1" title="Home1">Home3</a></li>
            <li><a href="#1" title="Home1">Home4</a></li>
            <li><a href="#1" title="Home1">Home5</a></li>
            <li><a href="#1" title="Home1">Home6</a></li>
            <li><a href="#1" title="Home1">Home7</a></li>
            </ul>
            
            </li>
			<li>
            <a href="#2" class="dropdown-tab" title="About">TIPOS</a>
            <ul class="dropdown-pane" >
            <li><a href="#1" title="Home1">TIPOS1</a></li>
            <li><a href="#1" title="Home1">TIPOS2</a></li>
            <li><a href="#1" title="Home1">TIPOS3</a></li>
            <li><a href="#1" title="Home1">TIPOS4</a></li>
            <li><a href="#1" title="Home1">TIPOS5</a></li>
            <li><a href="#1" title="Home1">TIPOS6</a></li>
            <li><a href="#1" title="Home1">TIPOS7</a></li>
            </ul>
            </li>
			<li><a href="#3" class="dropdown-tab" title="Services">TAGS</a></li>
			<br><br>
			<li><a href="#4" class="dropdown-tab" title="Upload">Upload</a></li>
			<li><a href="#5" class="dropdown-tab" title="Meus modelos">Meus modelos</a></li>

		  </ul>
	    </dd>
     
       
       
       
       
       </td>
       <td class="boxmidr"></td>
       </tr>     
       
       <tr>
       <td class="botl"></td>
       <td class="botr"></td>
       </tr>         
       
       </tbody>
       
       </table>
        
        

END;
		
		
		
		
		
	

	
		
	/*********************** Div Cloud Tag  ****************************/
	               
                
	echo("<div class='caixa sbox'>");
	echo("<div class='header-box'> Cloud Tags </div> ");
	
	echo("<div >");
	
	echo("<div id='tagcloud'>");
		
	echo("<div style='padding:3px;'>");
	
	for($i = 0; $i < sizeof($result) ; $i++)
	{				
		echo("<a href='#' style='font-size:".rand(13, 21)."px;text-decoration:none; color: ".$color_array[rand(0, 4)].";'>".$result[$i]." </a>");
	}
	
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:21px;text-decoration:none; color: #87A800;'>".$result[0]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:19px;text-decoration:none; color: #FF7600;'>".$result[1]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:13px;text-decoration:none; color: #87A800;'>".$result[2]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:13px;text-decoration:none; color: #87A800;'>".$result[3]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:20px;text-decoration:none; color: #FF7600;'>".$result[4]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:18px;text-decoration:none; color: #FF7600;'>".$result[5]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:16px;text-decoration:none; color: #DE2159;'>".$result[6]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:21px;text-decoration:none; color: #87A800;'>".$result[7]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:22px;text-decoration:none; color: #FF7600;'>".$result[8]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:14px;text-decoration:none; color: #DE2159;'>".$result[9]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:14px;text-decoration:none; color: #DE2159;'>".$result[10]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:16px;text-decoration:none; color: #DE2159;'>".$result[11]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:18px;text-decoration:none; color: #87A800;'>".$result[12]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:19px;text-decoration:none; color: #DE2159;'>".$result[13]." </a>");
	//echo("<a href='http://www.tagcloud-generator.com/' style='font-size:21px;text-decoration:none; color: #DE2159;'>".$result[14]." </a>");
	
	echo("</div>");
	
	// Close DIV tagcloud
	echo("</div>");
	
	
	
	echo("</div>");
	
	echo("</div>");
	
	/*********************** END OF Div Cloud Tag  ****************************/
?>


                
                
                
                
                